<?php $this->renderPartial('//common/header'); ?>
<style>.item-description ul li {margin-top:0;margin-bottom:10px;}</style>
<div id="main">
<div class="container">
	<ul class="breadcrumb">
		<li><a href="<?php echo PIUrl::createUrl('/home/');?>"><?php echo translate("Trang chủ"); ?></a></li>
		<li><a href="<?php echo PIUrl::createUrl('/home/listNews');?>"><?php echo translate("Tin tức"); ?></a></li>
		<?php if(!empty($cateNew)){ ?>
			<li><a href="javascript:void(0)"><?php echo $cateNew->name; ?></a></li>
		<?php } ?>
	</ul>
	<h2 class="title-lg"><?php echo translate("Tin tức"); ?></h2>
	<div class="main-content">
		<div class="item-description">
		<?php if(!empty($arrNew)){ ?>
			<ul>
			<?php foreach($arrNew as $new){?>
				<li>
					<div class="wrap-img">
						<span><a href="<?php echo PIUrl::createUrl('/home/newDetail/', array("alias"=>$new->alias));?>"><img src="<?php echo getImage($new->image, 160, 122); ?>" alt="img"></a></span>
					</div>
					<div class="wrap-content">
						<h4><a href="<?php echo PIUrl::createUrl('/home/newDetail/', array("alias"=>$new->alias));?>"><?php echo $new->name; ?></a></h4>
						<p><?php echo word_limiter($new->description,75); ?></p>
					</div>
				</li>
			<?php } ?>
			</ul>
			<?php
				$this->widget('CLinkPager', array(
					'currentPage'=>$pages->getCurrentPage(),
					'itemCount'=>$item_count,
					'pageSize'=>$page_size,
					'maxButtonCount'=>5,
					'header'=>'',
					'htmlOptions'=>array('class'=>'pagination mt0'),
					'firstPageCssClass' => 'firstPage',
					'lastPageCssClass' => 'lastPage',
					'previousPageCssClass' => 'prev',
					'prevPageLabel' => 'Prev',
					'nextPageLabel' => 'Next',
				));
			?>
		<?php }else echo translate("Không tìm thấy tin tức!"); ?>
		</div>
	</div>
	<div class="sidebar">
		<!-- Theme moi nhat -->
		<?php $this->widget("application.components.widgetNewTheme"); ?>
	</div>
	<div class="clearfix"></div>
</div>
</div>

<div id="push"> </div>
</div>
<style>
.firstPage, .lastPage{display:none !important;}
.selected a{color: #ED3237 !important;}
.pagination {float:left !important;}
</style>
<?php $this->renderPartial('//common/footer'); ?>